<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="/favicon.ico" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta
      http-equiv="cache-control"
      content="no-cache, no-store, must-revalidate"
    />
    <meta http-equiv="expires" content="0" />

    <meta
      name="viewport"
      content="width=device-width,
    initial-scale=1.0,
    user-scalable=no,
    maximum-scale=1.0,
    minimum-scale=1.0
    "
    />

    <title>物料查询</title>
  </head>
  <body>
    <style>
      html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        /* font-size: 16px; */
      }
      html,
      body {
        /* font-size: 14px !important; */
      }
      body,
      button,
      dd,
      div,
      dl,
      dt,
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      li,
      ol,
      p,
      ul {
        margin: 0;
        padding: 0;
      }

      dl,
      li,
      ol,
      ul {
        list-style: none outside none;
      }

      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        font-size: 100%;
      }

      input,
      option,
      select {
        font-family: inherit;
        font-size: inherit;
        font-style: inherit;
        font-weight: inherit;
      }

      button,
      img {
        border: 0;
      }

      a {
        text-decoration: none;
        color: #000;
        outline: 0;
      }
    </style>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
    <!-- <script type="text/javascript" src="/src/util/NeoLappSdk.js"></script> -->
    <script>
      window.onload = function () {
        /** 如果用户使用IE浏览器，则跳转到Chrome浏览器以获取最佳体验*/
        var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
        var isIE =
          userAgent.indexOf("compatible") > -1 &&
          userAgent.indexOf("MSIE") > -1; //判断是否为IE11以下版本的浏览器
        var isIE11 =
          userAgent.indexOf("Trident") > -1 &&
          userAgent.indexOf("rv:11.0") > -1; //判断是否为IE11浏览器
        if (isIE || isIE11) {
          var objShell = new ActiveXObject("WScript.Shell");
          if (!objShell.Run("cmd.exe /c start msedge ", 0, true)) {
            objShell.Run(
              "cmd.exe /c start msedge " + window.location.href,
              0,
              true
            ); //cmd调用edge打开当前网页
            return;
          } else if (!objShell.Run("cmd.exe /c start chrome ", 0, true)) {
            objShell.Run(
              "cmd.exe /c start chrome " + window.location.href,
              0,
              true
            ); //cmd调用Chrome打开当前网页
            return;
          } else if (!objShell.Run("cmd.exe /c start firefox ", 0, true)) {
            objShell.Run(
              "cmd.exe /c start firefox " + window.location.href,
              0,
              true
            ); //cmd调用Firefox打开当前网页
            return;
          } else if (!objShell.Run("cmd.exe /c start UCBrowser ", 0, true)) {
            objShell.Run(
              "cmd.exe /c start UCBrowser " + window.location.href,
              0,
              true
            ); //cmd调用UCBrowser打开当前网页
            return;
          }

          /** 关闭当前IE浏览器标签*/
          if (isIE) {
            window.open("", "_self");
            // window.close();
          } else {
            window.open("", "_top");
            // window.close();
          }
        }
      };
    </script>
    <script>
      // (function (doc, win) {
      //   var docEl = doc.documentElement,
      //     isIOS = navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
      //     dpr = isIOS ? Math.min(win.devicePixelRatio, 3) : 1,
      //     dpr = window.top === window.self ? dpr : 1, //被iframe引用时，禁止缩放
      //     dpr = 1,
      //     scale = 1 / dpr,
      //     resizeEvt =
      //       "orientationchange" in window ? "orientationchange" : "resize";
      //   docEl.dataset.dpr = dpr;
      //   var metaEl = doc.createElement("meta");
      //   metaEl.name = "viewport";
      //   metaEl.content =
      //     "initial-scale=" +
      //     scale +
      //     ",maximum-scale=" +
      //     scale +
      //     ", minimum-scale=" +
      //     scale;
      //   docEl.firstElementChild.appendChild(metaEl);
      //   var recalc = function () {
      //     var width = docEl.clientWidth;
      //     if (width / dpr > 750) {
      //       width = 750 * dpr;
      //     }
      //     // 乘以100，px : rem = 100 : 1
      //     docEl.style.fontSize = 100 * (width / 750) + "px";
      //   };
      //   recalc();
      //   if (!doc.addEventListener) return;
      //   win.addEventListener(resizeEvt, recalc, false);
      // })(document, window);
    </script>
  </body>
</html>
